<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>显示模式转换</title>
    <style>
        a{
            /* 行内元素转换为块级元素 */
            /* display: block; */
            /* 转换为行内块 */
            display: inline-block;
            width: 100px;
            height: 30px;
            background-color: pink;
        }
    </style>
</head>
<body>
    <a href="#">链接</a>
    <a href="#">手机</a>
</body>
</html>